﻿CREATE TABLE [dbo].[Note](
	[id] [bigint] IDENTITY(1,1) NOT NULL,
	[title] [nvarchar](500) NOT NULL,
	[content] [nvarchar](max) NOT NULL,
	[user_Id] [bigint] NOT NULL,
	[isPublic] [bit] NOT NULL CONSTRAINT [DF_Note_isPublic]  DEFAULT ((0)),
	[creation_date] [datetime] NULL,
	[last_update] [datetime] NOT NULL,
	[tag] [nvarchar](max) NULL,
 CONSTRAINT [PK_Note] PRIMARY KEY CLUSTERED 
(
	[id] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]


